Skip to content

Feature(#82) replace deprecated data with MDEB datasets - #83

Merged
andybeet merged 10 commits into
devfrom
feature/i82-remove-deprecated-data
Jul 15, 2026
Merged

Feature(#82) replace deprecated data with MDEB datasets#83
andybeet merged 10 commits into
devfrom
feature/i82-remove-deprecated-data

Conversation

@andybeet

@andybeet andybeet commented Jul 14, 2026

Copy link
Copy Markdown
Member

Your commits explain the who, what, where and when of these changes. Your code shows the how. You do not need to reiterate this. This PR should complete the picture by explaining why these changes are necessary.

Justification

Several datasets are flagged as deprecated. There are replacement datasets in the MDEB gis datahub. Enough time has passed for users to prepare. This PR replaces those datasets and their documentation.

Fixes #82

Types of changes

What types of changes does this pull request introduce? Put an x in the boxes that apply.
This will inform the new release number.

  • Fix (non-breaking change which fixes a bug)
  • Feature (non-breaking change which adds or changes functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other change (if none of the other choices apply)

Further comments

Changes to the pkgdown yml and the onload function have been removed.

Reviewer instructions

Please reinstall the package from this branch, and make sure the updated datasets are available. Run the pkgdown::build_site() function and view the documentation for the removal of old and inclusion of new datasets.

Note: there are many updates available for the datasets already in the package. These should be updated in another PR dedicated to an issue outlining this task

Do not commit any changes directly to the branch but make suggestions in this PR if changes are requested

@andybeet
andybeet requested a review from jmhatch July 14, 2026 20:49
@andybeet andybeet linked an issue Jul 14, 2026 that may be closed by this pull request

@jmhatch jmhatch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR looks good!

The _pkgdown.yml was modified to remove the deprecated data and add the replacement data.

The following data were replaced:

  • BTS_Strata -> bts_strata
  • Ecomon_Strata -> ecomon_strata
  • Shrimp_Strata -> shrimp_strata

The following data were added:

  • ecomon_stations

The following data were removed:

  • Shellfish_Strata

I was able to locally build the pkg, and was able to successfully load and plot the data. Data documentation and pkgdown site looked good. No obvious issues.

Might want to add an entry to NEWS.md to document the changes made in this PR, if you haven't already done so in another PR.

Also, the workflow used to update the mdeb datasets wasn't clear. I saw a yaml file in the .github folder, but it looks like it isn't being implemented currently. Might want to document your process somewhere, or maybe automate it (which you may have already started?).

@andybeet

Copy link
Copy Markdown
Member Author

Thanks Josh, i will add changes to DESCRIPTION and NEWS.md in dev and ask for your review there! Regarding the Shellfish_Strata, this was an object describing clam and quahog strata. This has been replaced with 2 separate surveys from MDEB right? sc_strata and scallop_strata?

Regarding the creation of the MDEB data sets. This was from something we worked on a while back. The script is in data-raw : get_mdeb_for_package.r(). I was thinking of using that in the placeholder workflow we had started to implement.

We could start a discussion to walk through how we want to do that automation

@jmhatch

jmhatch commented Jul 15, 2026

Copy link
Copy Markdown
Member

Yeah, I think you're right. Shellfish_Strata was replaced by oq_strata, sc_strata, and scallop_strata. The oq_strata and sc_strata live in the same feature service as separate layers (since it's considered to be one survey).

And thanks for jogging my memory! It's been awhile since I looked at all of this, and I do vaguely remember that R code you pointed to. That addresses my question about workflow.

Happy to help / discuss the automation. I guessed you had most of it started in that template.

@andybeet
andybeet merged commit 298c754 into dev Jul 15, 2026
7 checks passed
@andybeet
andybeet deleted the feature/i82-remove-deprecated-data branch July 15, 2026 18:15
@andybeet andybeet mentioned this pull request Jul 15, 2026
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove deprecated data sets

2 participants